from django.conf.urls import url


from orders import views
urlpatterns = [
    url(r'^orders/settlement/$',views.OrderSettlementView.as_view()),
    # url(r'^orders/$',views.SaveOrderView.as_view()),
    url(r'^orders/(?P<order_id>\d+)/comments/',views.SaveCommentView.as_view()),
    url(r'^skus/(?P<sku_id>\d+)/comments/$',views.ListCommentView.as_view()),
    url(r'^orders/(?P<order_id>\d+)/uncommentgoods/$',views.GetUncommentOrderGoodsView.as_view()),
]

from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register('orders',views.SaveOrderViewSet,base_name='orders')
urlpatterns+=router.urls